package cn.tedu.charging.order.client;

import cn.tedu.charging.common.protocol.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="charging-device")
public interface DeviceClient {
    //每当有一个调用接口需求 一定先有接口文件
    @GetMapping("/device/gun/check")
    JsonResult<Boolean>
    checkGunAvailable(@RequestParam("gunId")Integer gunId);
}
